<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>原型</title>
  <link rel="stylesheet" href="../src/css/layui.css">
</head>

<body class="layui-layout-body">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo">北京地铁数据统计</div>
      <!-- 头部区域（可配合layui已有的水平导航） -->

      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">         
            admin
        </li>
        <li class="layui-nav-item"><a href="javascript:exit()">退出</a></li>
      </ul>
    </div>

    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
          <li class="layui-nav-item">
            <a href="javascript:changeurl('dashboard/console.html');">首页</a>

          </li>
          <li class="layui-nav-item">
            <a href="javascript:;">统计分析</a>
            <dl class="layui-nav-child">
              <dd><a href="javascript:changeurl('summary/record_company.html');">安检公司打卡情况</a></dd>
              <dd><a href="javascript:changeurl('summary/record_line.html');">线路打卡情况</a></dd>
              <dd><a href="javascript:changeurl('summary/staff.html');">人员稳定性情况</a></dd>
              <dd><a href="javascript:changeurl('summary/detail.html');">安检员详情</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item">
            <a href="javascript:;">基础数据</a>
            <dl class="layui-nav-child">
              <dd><a href="javascript:changeurl('maintain/number.html');">合同人数数据</a></dd>
              <dd><a href="javascript:changeurl('maintain/operation.html');">运营公司数据</a></dd>
            </dl>
          </li>
        </ul>
      </div>
    </div>

    <div class="layui-body">
      <!-- 内容主体区域 -->
      <iframe id="iframe-content" style="width:100%;height:100%;" src="dashboard/console.html" frameborder="0"></iframe>
    </div>
    <!-- 底部 -->
    <div class="layui-footer layui-text" style="text-align: right;">
      Copyright © 2020 北京市公安局
      <span class="pull-right">Version 1.0.0</span>
    </div>

  </div>



  <script src="../src/layui.js"></script>
  <script>
    //JavaScript代码区域
    layui.use('element', function () {
      var element = layui.element;

    });

    function changeurl(url) {
      document.getElementById('iframe-content').src = url;
    }

    function exit() {
      location.replace('./login.html');
      return false;
    }

  </script>
</body>

</html>